package com.ruoyi.project.system.erp.entity;


import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class ScheduleConfirmResult {


    /**
     * state : 1
     * data : {"result":[{"confirmation_id":"TEST104941","material_name":"锥形高强度水泥杆，230mm×12m×100kn.m","specification":null,"material_code":"010049001588","unit":"根","quantity":1000,"contract_delivery_date":null,"confirmation_status":1,"rownum_":1}],"row_total":1,"page_size":10,"current_page":1}
     * msg : 成功
     * ext : {}
     */

    private int state;
    private DataBean data;
    private String msg;
    private ExtBean ext;

    @NoArgsConstructor
    @Data
    public static class DataBean {
        /**
         * result : [{"confirmation_id":"TEST104941","material_name":"锥形高强度水泥杆，230mm×12m×100kn.m","specification":null,"material_code":"010049001588","unit":"根","quantity":1000,"contract_delivery_date":null,"confirmation_status":1,"rownum_":1}]
         * row_total : 1
         * page_size : 10
         * current_page : 1
         */

        private int rowTotal;
        private int pageSize;
        private int currentPage;
        private List<ResultBean> result;

        @NoArgsConstructor
        @Data
        public static class ResultBean {
            /**
             * confirmation_id : TEST104941
             * material_name : 锥形高强度水泥杆，230mm×12m×100kn.m
             * specification : null
             * material_code : 010049001588
             * unit : 根
             * quantity : 1000
             * contract_delivery_date : null
             * confirmation_status : 1
             * rownum_ : 1
             */

            private String confirmationId;
            private String materialName;
            private Object specification;
            private String materialCode;
            private String unit;
            private int quantity;
            private Object contractDeliveryDate;
            private int confirmationStatus;
            private int rownum;
        }
    }

    @NoArgsConstructor
    @Data
    public static class ExtBean {
    }
}
